<h2>Munkák</h2>
<form action="<?php echo Request::getURL("game", "job"); ?>" method="post">
	<ul id="jobList">
	<?php foreach($jobs as $job): ?>
		<li id="job_<?php echo $job["id"]; ?>">
			<div class="left">
				<h3 class="name"><?php echo $job["name"]; ?></h3>
				<p class="description"><?php echo $job["desc"]; ?></p>
			</div>
			<div class="right">
				<div class="jobInfo">
					<span class="cost">Energia kell <?php echo $job["energy"]; ?></span>
					<span class="reward">Jutalom <?php echo $job["minReward"]."-".$job["maxReward"]; ?></span>
					<span class="time">Idő <?php echo $job["time"]; ?>mp</span>
					<span class="xp">Tapasztalat <?php echo $job["xp"]; ?></span>
				</div>
				<div class="progress">
					<span class="progressText"><?php echo ($job["progress"]?:0)."/".(
						$job["mastery"]==3?
							$job["diamondProgress"]:
						$job["mastery"]==2?
							$job["goldProgress"]:
						$job["mastery"]?
							$job["silverProgress"]:
							$job["bronzeProgress"]);?></span>
					<span class="pregressRank">Rang <?php echo $job["mastery"]; ?></span>
					<div class="progressBar">booo</div>
				</div>
			</div>
			<div class="clear"></div>
		</li>
	<?php endforeach; ?>
	</ul>
</form>